package com.fht.spring_boot_study.model.test.service;

import com.fht.spring_boot_study.model.common.entity.ResultEntity;
import com.fht.spring_boot_study.model.common.entity.SearchBean;
import com.fht.spring_boot_study.model.test.entity.City;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface CityService {
 ResultEntity<City> insertCity(City city);
 ResultEntity<City> updateCity(City city);
 //删除对象后不需要返回数据了
 ResultEntity<Object> deleteCityByCityId(int cityId);
 City getCityByCityId(int cityId);
 List<City> getCitiesByCountryId(int countryId);
 PageInfo<City> getCitiesBySearchBean(SearchBean searchBean);
}
